<#assign title="仪表盘", index="layui-this">
<#include 'header.ftl'>
<div class="layui-body my-body">
    <div class="layui-row layui-col-space10">
        <div class="layui-col-xs6 layui-col-md3">
            <div class="card">
                <div class="card-body">
                    <div class="clearfix">
                        <div class="float-left">
                            <i class="layui-icon layui-icon-user icon-user"></i>
                        </div>
                        <div class="float-right">
                            <div class="val">
                                <h3 id="person_num">20</h3>
                            </div>
                            <div class="text-muted">
                                <i class="layui-icon-note layui-icon"></i> 用户数
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-col-xs6 layui-col-md3">
            <div class="card">
                <div class="card-body">
                    <div class="clearfix">
                        <div class="float-left">
                            <i class="layui-icon layui-icon-group icon-group"></i>
                        </div>
                        <div class="float-right">
                            <div class="val">
                                <h3 id="result_num">30</h3>
                            </div>
                            <div class="text-muted">
                                <i class="layui-icon-list layui-icon"></i> 文章数
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-col-xs6 layui-col-md3">
            <div class="card">
                <div class="card-body">
                    <div class="clearfix">
                        <div class="float-left">
                            <i class="layui-icon layui-icon-home icon-home"></i>
                        </div>
                        <div class="float-right">
                            <div class="val">
                                <h3 id="type_num">20</h3>
                            </div>
                            <div class="text-muted">
                                <i class="layui-icon-survey layui-icon"></i> 病情查询次数
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-col-xs6 layui-col-md3">
            <div class="card">
                <div class="card-body">
                    <div class="clearfix">
                        <div class="float-left">
                            <i class="layui-icon layui-icon-chat icon-user"></i>
                        </div>
                        <div class="float-right">
                            <div class="val">
                                <h3 id="unaudited_num">3</h3>
                            </div>
                            <div class="text-muted">
                                <i class="layui-icon-note layui-icon"></i> 未审核文章数
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md9">
            <div id="test" style="width: 900px;height:520px;"> </div>
        </div>
        <div class="layui-col-md3">
            <fieldset class="layui-elem-field site-demo-button" style="margin-top: 30px;">
                <legend>系统设置</legend>
                <div class="layui-form" lay-filter="setting">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: auto">自动审核注册</label>
                        <div class="layui-input-block">
                            <input type="checkbox" name="autoRegister" lay-skin="switch" lay-filter="autoRegister" lay-text="打开|关闭">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: auto">自动审核成果</label>
                        <div class="layui-input-block">
                            <input type="checkbox" name="autoResult" lay-skin="switch" lay-filter="autoResult" lay-text="打开|关闭">
                        </div>
                    </div>
                </div>
            </fieldset>
        </div>
    </div>
</div>

<script src="/js/echarts.min.js"></script>
<script src="/js/echarts/calendar.js"></script>
<script>
    layui.use(['element', 'laytpl', 'form'], function () {
        var element = layui.element,
            $ = layui.$,
            laytpl = layui.laytpl,
            form = layui.form;

        $.ajaxSetup({ //发送请求前触发
            beforeSend: function (xhr) { //可以设置自定义标头
                xhr.setRequestHeader('token', layui.data('xunyilu').token);
            }
        })

        $.calender(document.getElementById('test'))

    });
</script>
<#include 'footer.ftl' >